<?php


class CharaterFlyweight implements FlywightInterface
{

    private $name;

    public function __construct($name)
    {
        $this->name = $name;
    }

    /**
     * @param $extrinsicState
     * @return mixed
     */
    public function render($extrinsicState)
    {
        return sprintf('Character %s with for %s', $this->name,$extrinsicState);
    }
}